<script type="text/javascript">
jQuery(function(){
	$('.ver_anuncio_icon').click(function(){
		var id = $(this).parent().find('>:first-child').html();
		$('#modal').show();
		$('#fundo').show();
		$.ajax({
			url: "<?php echo $this->Html->url('/anuncios/view');?>/"+id,
			success: function(data){
				$("#modal > .conteudo").html(data);
				FB.XFBML.parse();
				twttr.widgets.load()
			},
			beforeSend: function(){ 
				$("#modal > .conteudo").html('');
			}
		});
	});
});
</script>